Optimal. Leaf size=199 \[ \frac {2 b \left (21 a^2+5 b^2\right ) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {2 b \left (21 a^2+5 b^2\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}+\frac {2 a \left (5 a^2+9 b^2\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 b^2 \sin (c+d x) (a \sec (c+d x)+b)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {32 a b^2 \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.25, antiderivative size = 199, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 8, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.348, Rules used = {3238, 3841, 4047, 3769, 3771, 2641, 4045, 2639} \[ \frac {2 b \left (21 a^2+5 b^2\right ) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {2 b \left (21 a^2+5 b^2\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}+\frac {2 a \left (5 a^2+9 b^2\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 b^2 \sin (c+d x) (a \sec (c+d x)+b)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {32 a b^2 \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 3238
Rule 3769
Rule 3771
Rule 3841
Rule 4045
Rule 4047
Rubi steps
\begin {align*} \int \frac {(a+b \cos (c+d x))^3}{\sqrt {\sec (c+d x)}} \, dx &=\int \frac {(b+a \sec (c+d x))^3}{\sec ^{\frac {7}{2}}(c+d x)} \, dx\\ &=\frac {2 b^2 (b+a \sec (c+d x)) \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2}{7} \int \frac {8 a b^2+\frac {1}{2} b \left (21 a^2+5 b^2\right ) \sec (c+d x)+\frac {1}{2} a \left (7 a^2+3 b^2\right ) \sec ^2(c+d x)}{\sec ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 b^2 (b+a \sec (c+d x)) \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2}{7} \int \frac {8 a b^2+\frac {1}{2} a \left (7 a^2+3 b^2\right ) \sec ^2(c+d x)}{\sec ^{\frac {5}{2}}(c+d x)} \, dx+\frac {1}{7} \left (b \left (21 a^2+5 b^2\right )\right ) \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {32 a b^2 \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 b \left (21 a^2+5 b^2\right ) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {2 b^2 (b+a \sec (c+d x)) \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {1}{21} \left (b \left (21 a^2+5 b^2\right )\right ) \int \sqrt {\sec (c+d x)} \, dx+\frac {1}{5} \left (a \left (5 a^2+9 b^2\right )\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx\\ &=\frac {32 a b^2 \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 b \left (21 a^2+5 b^2\right ) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {2 b^2 (b+a \sec (c+d x)) \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {1}{21} \left (b \left (21 a^2+5 b^2\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx+\frac {1}{5} \left (a \left (5 a^2+9 b^2\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx\\ &=\frac {2 a \left (5 a^2+9 b^2\right ) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 b \left (21 a^2+5 b^2\right ) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {32 a b^2 \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 b \left (21 a^2+5 b^2\right ) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {2 b^2 (b+a \sec (c+d x)) \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.96, size = 132, normalized size = 0.66 \[ \frac {\sqrt {\sec (c+d x)} \left (b \sin (2 (c+d x)) \left (210 a^2+126 a b \cos (c+d x)+15 b^2 \cos (2 (c+d x))+65 b^2\right )+20 b \left (21 a^2+5 b^2\right ) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )+84 a \left (5 a^2+9 b^2\right ) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )\right )}{210 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.15, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {b^{3} \cos \left (d x + c\right )^{3} + 3 \, a b^{2} \cos \left (d x + c\right )^{2} + 3 \, a^{2} b \cos \left (d x + c\right ) + a^{3}}{\sqrt {\sec \left (d x + c\right )}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b \cos \left (d x + c\right ) + a\right )}^{3}}{\sqrt {\sec \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.93, size = 421, normalized size = 2.12 \[ -\frac {2 \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (240 b^{3} \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (-504 b^{2} a -360 b^{3}\right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (420 a^{2} b +504 b^{2} a +280 b^{3}\right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (-210 a^{2} b -126 b^{2} a -80 b^{3}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+105 a^{2} b \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+25 b^{3} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-105 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) a^{3}-189 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) a \,b^{2}\right )}{105 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b \cos \left (d x + c\right ) + a\right )}^{3}}{\sqrt {\sec \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (a+b\,\cos \left (c+d\,x\right )\right )}^3}{\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (a + b \cos {\left (c + d x \right )}\right )^{3}}{\sqrt {\sec {\left (c + d x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________